home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Datafile PD-CD 1 Issue 2
/
PDCD-1 - Issue 02.iso
/
_utilities
/
utilities
/
004
/
gamesuit
/
!Amnesia
/
AmsHelp
/
Technical
/
PlotCode
< prev
next >
Wrap
Text File
|
1994-08-19
|
767b
|
33 lines
; Amnesia module plot code
; This header was part of the module code which was assembled using !ExtAsm.
; Copyright A.Southgate 1994 but may be freely distributed and used in the
; creation of other code.
; Before calling the module has performed the equivalent of a
; LDMIA R10,{R0,R2-R4}, where R10 is the address of the object
.plotobj
STMFD R13!,{R0-R3,R14}
TST R2,#Amf_anim
BLNE fastspranim
TST R2,#Amf_use_plot_ofs
LDRNE R3,[R12,#v.plotxofs]
LDR R1,[R10,#o.x]
ADDNE R1,R1,R3
LDRNE R3,[R12,#v.plotyofs]
LDR R2,[R10,#o.y]
ADDNE R2,R2,R3
MOV R1,R1,ASR #coordshift
MOV R2,R2,ASR #coordshift
SWI FastSpr_Plot
LDMFD R13!,{R0-R3,PC}
.fastspranim
TST R2,#Amf_timer2
LDREQ R1,[R10,#o.timer]
LDRNE R1,[R10,#o.timer2]
AND R1,R1,#&FF<<24
ORR R0,R0,R1,LSR #8
MOV PC,R14